﻿#pragma once
#include "afxdialogex.h"


// CRightPage 对话框

class CRightPage : public CDialogEx
{
	DECLARE_DYNAMIC(CRightPage)

public:
	CRightPage(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CRightPage();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_RIGHT_Page };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	CListCtrl m_list;
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL OnInitDialog();
	Student m_stu;
	// 由左控件向右控价传送学生信息
	void insertStudent(Student stu);
	afx_msg void OnDestroy();
	// 从文件中读取加载学生信息
	void OnloadStudentInfo();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	CListCtrl m_scoreList;
	void insertStudent_score(StudentScore stuscore);
	afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
};
